<template>
  <div>
    <div class="Userorder">
      <!-- 我的订单 -->
      <van-cell-group :border="false" class="border">
        <van-cell class="my" is-link title="我的订单" value="查看全部订单" />
      </van-cell-group>
      <!-- 订单工具 -->
      <ul class="order-img van-hairline--top d-flex align-items-center">
        <li
          class="order-item d-flexs"
          v-for="(item, index) in order"
          :key="index"
        >
          <img width="25" height="25" :src="item.img" alt="" />
          <span>{{ item.name }}</span>
        </li>
      </ul>
    </div>

    <!-- 必备工具 -->
    <div class="Userorder mt-1">
      <van-cell-group :border="false">
        <van-cell class="my" is-link title="必备工具" value="查看全部工具" />
      </van-cell-group>
      <!-- 订单工具 -->
      <ul class="mustorder van-hairline--top">
        <li class="d-flexs" v-for="(item, index) in allorder" :key="index">
          <img width="25" height="25" :src="item.img" alt="" />
          <span>{{ item.name }}</span>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: "myorder",
  props: {
    order: {
      type: Array,
      default: () => [],
    },
    allorder: {
      type: Array,
      default: () => [],
    },
  },
};
</script>
<style  scoped>
/* // 必备工具 */
.mustorder {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}

.mustorder li {
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 95px;
}

.mustorder li span {
  font-size: 12px;
  color: #666666;
  padding-top: 10px;
}

/* // 我的订单 */
.order-img {
  height: 90px;
}
.order-item {
  display: flex;
  flex: 1;
}

.order-item span {
  font-size: 12px;
  color: #666666;
  margin-top: 10px;
}

.Userorder {
  border-radius: 10px !important;
  width: 95%;
  padding: 0 10px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #fff;
}
.my {
  font-weight: bold;
  color: black;
}
</style>